package code

import (
	"fmt"

	"google.golang.org/protobuf/proto"
)

var codes = map[int]func(req proto.Message){}

func RegisterCode(code int, f func(req proto.Message)) {
	codes[code] = f
}

func GetCode(code int) func(req proto.Message) {
	return codes[code]
}

func Print() {
	fmt.Println("test1")
}
